//
//  MyTabBarController.m
//  BeautyBaoUnion
//
//  Created by 肖智 on 2016/10/20.
//  Copyright © 2016年 肖智. All rights reserved.
//

#import "MyTabBarController.h"
#import "HomeViewController.h"
@interface MyTabBarController ()

@end

@implementation MyTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithHex:0xfaf7f2 alpha:1.0];

    HomeViewController *ctl0 = [[HomeViewController alloc] init];
    UINavigationController *nav0 = [[UINavigationController alloc] initWithRootViewController:ctl0];
    nav0.view.backgroundColor = [UIColor clearColor];
    self.viewControllers = @[nav0];
    self.selectedIndex = 0;

    // Do any additional setup after loading the view.
}
- (void)viewWillLayoutSubviews{
    CGRect tabFrame = self.tabBar.frame; //self.TabBar is IBOutlet of your TabBar
    tabFrame.size.height = 80;
    tabFrame.origin.y = self.view.frame.size.height - 80;
    self.tabBar.frame = tabFrame;
    self.tabBar.barTintColor = [[UIColor cyanColor] colorWithAlphaComponent:0.3];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
